﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.WMS.Entitys;

/// <summary>
/// 收货检验单实体.
/// </summary>
[SugarTable("wms_busi_receive_check","收货检验单")]
[Tenant(ClaimConst.TENANTID)]
public class WmsBusiReceiveCheckEntity:CLDEntityBase
{
    /// <summary>
    /// 收货主表id.
    /// </summary>
    [SugarColumn(ColumnName = "F_ReceiveId",ColumnDescription = "收货主表id")]
    public string ReceiveId { get; set; }

    /// <summary>
    /// 检验方式localhost：本地  QMS：QMS .
    /// </summary>
    [SugarColumn(ColumnName = "F_CheckMethod",ColumnDescription = "检验方式")]
    public string CheckMethod { get; set; }

    /// <summary>
    /// 供应商id.
    /// </summary>
    [SugarColumn(ColumnName = "F_SupplierId",ColumnDescription = "供应商id")]
    public string SupplierId { get; set; }

    /// <summary>
    /// 供应商编码.
    /// </summary>
    [SugarColumn(ColumnName = "F_SupplierCode",ColumnDescription = "供应商编码")]
    public string SupplierCode { get; set; }

    /// <summary>
    /// 供应商名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_SupplierName",ColumnDescription = "供应商名称")]
    public string SupplierName { get; set; }

    /// <summary>
    /// 物料id.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialId",ColumnDescription = "物料id")]
    public string MaterialId { get; set; }

    /// <summary>
    /// 物料code.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialCode",ColumnDescription = "物料code")]
    public string MaterialCode { get; set; }

    /// <summary>
    /// 物料名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialName",ColumnDescription = "物料名称")]
    public string MaterialName { get; set; }

    /// <summary>
    /// 数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_Qty",ColumnDescription = "数量")]
    public decimal Qty { get; set; }

    /// <summary>
    /// 不合格数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_UnqualifiedQty",ColumnDescription = "不合格数量")]
    public decimal? UnqualifiedQty { get; set; }

    /// <summary>
    /// 状态(0:未检验 1：合格2:不合格).
    /// </summary>
    [SugarColumn(ColumnName = "F_Status",ColumnDescription = "状态(0:未检验 1：合格2:不合格)")]
    public int? Status { get; set; }

    /// <summary>
    /// 检验员.
    /// </summary>
    [SugarColumn(ColumnName = "F_CheckUser",ColumnDescription = "检验员")]
    public string CheckUser { get; set; }

    /// <summary>
    /// 检验时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_CheckDate",ColumnDescription = "检验时间")]
    public DateTime? CheckDate { get; set; }

    /// <summary>
    /// 不合格原因.
    /// </summary>
    [SugarColumn(ColumnName = "F_Reason",ColumnDescription = "不合格原因")]
    public string Reason { get; set; }

    /// <summary>
    /// 不合格对策.
    /// </summary>
    [SugarColumn(ColumnName = "F_Countermeasure",ColumnDescription = "不合格对策")]
    public string Countermeasure { get; set; }
}